org.eclipse.vtp.desktop.core.actions.util
Class DynamicMenuManager

java.lang.Object
  extended by org.eclipse.jface.action.ContributionManager
      extended by org.eclipse.jface.action.MenuManager
          extended by org.eclipse.vtp.desktop.core.actions.util.DynamicMenuManager
All Implemented Interfaces:
org.eclipse.jface.action.IContributionItem, org.eclipse.jface.action.IContributionManager, org.eclipse.jface.action.IMenuManager

public class DynamicMenuManager
extends org.eclipse.jface.action.MenuManager

This class represents a custom menu manager that has the IContributionItem dynamic features enabled.

Version:
1.0
Author:
Trip Gilman

Field Summary
 
Fields inherited from class org.eclipse.jface.action.MenuManager
visible
 
Constructor Summary
DynamicMenuManager(java.lang.String text)
          Creates a new DynamicMenuManager with the given name.
 
Method Summary
 boolean isDynamic()
           
 boolean isEnabled()
           
 void setEnabled(boolean b)
          Sets the enablement flag of this menu manager
 
Methods inherited from class org.eclipse.jface.action.MenuManager
addMenuListener, createContextMenu, createMenuBar, createMenuBar, dispose, fill, fill, fill, fill, findMenuUsingPath, findUsingPath, getId, getMenu, getMenuText, getOverrides, getParent, getRemoveAllWhenShown, isGroupMarker, isSeparator, isSubstituteFor, isVisible, markDirty, removeMenuListener, saveWidgetState, setOverrides, setParent, setRemoveAllWhenShown, setVisible, update, update, update, update, updateAll
 
Methods inherited from class org.eclipse.jface.action.ContributionManager
add, add, allowItem, appendToGroup, appendToGroup, dumpStatistics, find, getItems, getSize, hasDynamicItems, indexOf, indexOf, insert, insertAfter, insertAfter, insertBefore, insertBefore, internalSetItems, isDirty, isEmpty, itemAdded, itemRemoved, prependToGroup, prependToGroup, remove, remove, removeAll, replaceItem, setDirty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.action.IContributionManager
add, add, appendToGroup, appendToGroup, find, getItems, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, prependToGroup, prependToGroup, remove, remove, removeAll
 
Methods inherited from interface org.eclipse.jface.action.IContributionItem
isDirty
 

Constructor Detail

DynamicMenuManager

public DynamicMenuManager(java.lang.String text)
Creates a new DynamicMenuManager with the given name.

Parameters:
text - The name of the menu manager
Method Detail

setEnabled

public void setEnabled(boolean b)
Sets the enablement flag of this menu manager

Parameters:
b - The new enablement flag value

isDynamic

public boolean isDynamic()
Specified by:
isDynamic in interface org.eclipse.jface.action.IContributionItem
Overrides:
isDynamic in class org.eclipse.jface.action.MenuManager

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface org.eclipse.jface.action.IContributionItem
Specified by:
isEnabled in interface org.eclipse.jface.action.IMenuManager
Overrides:
isEnabled in class org.eclipse.jface.action.MenuManager